<template>
  <div class="page-center">
    <div class="page-center__content">
      <img class="page-center__avatar" src="https://gravatar.com/avatar/?d=retro" />
      <p class="page-center__item">未登录</p>
    </div>
    <div class="page-center__action">
      <div class="btn-area">
        <van-button type="primary" size="large" to="/login">登录</van-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Center",

  activated() {
    this.$store.commit("SET_TITLE", "个人中心");
  }
};
</script>

<style lang="scss">
.page-center {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;

  &__content {
    text-align: center;
    color: rgba(0, 0, 0, 0.6);
  }

  &__avatar {
    background: #e7e7e7;
    width: 96px;
    height: 96px;
    margin-top: 40px;
    border-radius: 50%;
  }

  &__action {
    margin-bottom: 16px;
    padding: 0 15px;
  }
}
</style>